<?php
 /*
 * 1626cms 職位列表
 * ============================================================================
 * 版權所有: 1626網絡，并保留所有權利。
 * 網站地址: http://www.1626.com；
 * ----------------------------------------------------------------------------
 * 這不是一個自由軟件！您只能在不用于商業目的的前提下對程序代碼進行修改和
 * 使用；不允許對程序代碼以任何形式任何目的的再發布。
 * ============================================================================
*/
define('IN_QISHI', true);
$page_select="jobs";
require_once('./include/common.inc.php');
$smarty->caching = false;
require_once(QISHI_ROOT_PATH.'include/mysql.class.php');
$db = new mysql($dbhost,$dbuser,$dbpass,$dbname);
unset($dbhost,$dbuser,$dbpass,$dbname);
require_once(QISHI_ROOT_PATH.'include/fun_category.php');
require_once(QISHI_ROOT_PATH.'include/fun_jobs.php');
if ($_GET['category'])
{
	$category_name=get_jobs_category_one(intval($_GET['category']));
	$smarty->assign('category_name',cut_str($category_name['categoryname'],12,0));
	$smarty->assign('category_name_long',$category_name['categoryname']);
	$smarty->assign('category',$_GET['category']);
	$subclass_list=get_jobs_Parent_list(intval($_GET['category']));
	$smarty->assign('subclass_list',$subclass_list);
}
if ($_GET['subclass'])
{
	$subclass_name=get_jobs_category_one(intval($_GET['subclass']));
	$smarty->assign('subclass_name',cut_str($subclass_name['categoryname'],12,0));
	$smarty->assign('subclass_name_long',$subclass_name['categoryname']);
	$smarty->assign('subclass',$_GET['subclass']);
}
if ($_GET['district'])
{
	$district_name=get_jobs_area_one(intval($_GET['district']));
	$smarty->assign('district_name',cut_str($district_name['categoryname'],12,0));
	$smarty->assign('district',$_GET['district']);
}
if ($_GET['settr'])
{
	$smarty->assign('settr',$_GET['settr']);
	$settr_name=get_jobs_settr_one(intval($_GET['settr']));
	$smarty->assign('settr_name',cut_str($settr_name['categoryname'],12,0));
}
$smarty->assign('category_list',get_jobs_category(9,8));//職能列表
$smarty->assign('area_list',get_jobs_area());//地區列表
$smarty->assign('settr_list',get_jobs_settr());//地區列表
$smarty->display('jobs.htm');
?>
